package com.atguigu.springdata.dao;

import com.atguigu.springdata.entities.Product;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductDao extends ElasticsearchRepository<Product,Long> {

    List<Product> findByTitleAndPrice(String title, Double price);

    List<Product> findByPriceBetween(double lowPrice, double highPrice);
}
